package com.hps.spring.cloud.alibaba.controller;

import com.hps.spring.cloud.alibaba.client.NacosAuthProviderClient;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heps
 * @since 2020/11/5 15:26
 */
@RestController
@RequestMapping("/api")
public class NacosAuthConsumerController {

  @Resource
  private NacosAuthProviderClient nacosAuthProviderClient;

  @GetMapping("/hello")
  public String hello() {
    return nacosAuthProviderClient.hello();
  }
}
